package com.javastudy.forum.service;

import com.javastudy.forum.model.Article;
import io.swagger.models.auth.In;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Chooker
 * @create 2023-08-17 22:59
 */
public interface IArticleService {
    List<Article> selectAll();

    List<Article> selectByBoardId(Long boardId);

    @Transactional
    void create(Article article);

    Article selectById(Long id);

    void updateVisitCountById(Long id);

    void modify(Long id, String title, String content);

    @Transactional
    void delete(Long id);

    void thumbsUpById(Long id);

    void updateArticleCountById(Long id);

    List<Article> selectByUserId(Long userId);



}
